f = 'D:/project/pythonproject/game_and_utils/py-file/util/str/'


def read(path):
    with open(path, 'r', encoding='UTF-8') as file:
        return file.read()


def read_name(name):
    return read(f + name)


def write(str_out, path):
    # 将结果输出到第三个文件
    with open(path, 'w', encoding='UTF-8') as f3:
        f3.write(str_out)
